package com.settlement.system.model.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
* <p>
* 天猫资金流水导入VO
* </p>
*
* @author huangrensen
* @since 2024-04-25
*/
@Schema
@Data
public class TmFundFlowImportVo implements Serializable {
    @ExcelProperty(value = "账务流水号")
    private String financeNo;
    @ExcelProperty(value = "业务流水号")
    private String businessNo;
    @ExcelProperty(value = "商户订单号")
    private String originalSellerOrderNo;
    @ExcelProperty(value = "商品名称")
    private String productName;
    @ExcelProperty(value = "发生时间")
    private String orderTime;
    @ExcelProperty(value = "对方账号")
    private String buyerAcount;
    @ExcelProperty(value = "收入金额（+元）")
    private String incomeAmount;
    @ExcelProperty(value = "支出金额（-元）")
    private String payAmount;
    @ExcelProperty(value = "账户余额（元）")
    private String balance;
    @ExcelProperty(value = "交易渠道")
    private String channel;
    @ExcelProperty(value = "业务类型")
    private String businessType;
    @ExcelProperty(value = "备注")
    private String remark;
    @ExcelIgnore
    private String billMonth;
    @ExcelIgnore
    private Long storeId;
    @ExcelIgnore
    private String uuid;

    public static Map<String, String> getKeyMap(){
        Map<String, String> map = new HashMap<>();
        map.put("账务流水号", "financeNo");
        map.put("业务流水号", "businessNo");
        map.put("原商户订单号", "originalSellerOrderNo");
        map.put("商户订单号", "sellerOrderNo");
        map.put("商品名称", "productName");
        map.put("发生时间", "orderTime");
        map.put("对方账号", "buyerAcount");
        map.put("收入金额（+元）", "incomeAmount");
        map.put("支出金额（-元）", "payAmount");
        map.put("账户余额（元）", "balance");
        map.put("交易渠道", "channel");
        map.put("业务类型", "businessType");
        map.put("备注", "remark");
        return map;
    }
}
